package cn.tedu.spring;

import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestIOC {
    @Test
    public void ioc(){
        ClassPathXmlApplicationContext spring=
                new ClassPathXmlApplicationContext("spring-config.xml");
        Object o= spring.getBean("hello");
        Object o2= spring.getBean("hello");
        System.out.println(o==o2);
        System.out.println(o);

    }
}
